/* 全局样式 */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #1abc9c;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #333;
    background-color: #f8f9fa;
    padding-top: 56px;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
}

.navbar-brand i {
    margin-right: 5px;
    color: var(--secondary-color);
}

/* 搜索框样式 */
.search-form {
    width: 100%;
    max-width: 400px;
}

.search-form .form-control {
    border-radius: 20px 0 0 20px;
    border-right: none;
}

.search-form .btn {
    border-radius: 0 20px 20px 0;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 主内容区域 */
.main-content {
    padding: 20px 0;
}

/* 卡片样式 */
.card {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-title {
    font-weight: 600;
    color: var(--dark-color);
}

.card-header {
    background-color: rgba(52, 152, 219, 0.05);
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
}

.card-footer {
    background-color: rgba(52, 152, 219, 0.03);
}

/* 统计卡片 */
.stats-card {
    text-align: center;
    padding: 15px;
}

.stats-card .stats-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.stats-card .stats-value {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stats-card .stats-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.stats-card .stats-change {
    font-size: 0.8rem;
}

/* 标签样式 */
.badge {
    font-weight: 500;
    padding: 5px 8px;
    margin-right: 5px;
    border-radius: 4px;
}

/* 列表样式 */
.list-group-item {
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.list-group-item h5 {
    font-size: 1.1rem;
    color: var(--dark-color);
}

/* 分页按钮 */
.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link {
    color: var(--primary-color);
}

/* 加载更多按钮 */
.btn-load-more {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    transition: all 0.2s ease;
}

.btn-load-more:hover:not(:disabled) {
    background-color: #e9ecef;
    color: #495057;
}

.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 热门话题标签 */
.topic-filters {
    margin-bottom: 20px;
}

.topic-filters .btn-group .btn {
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.9rem;
}

/* 页脚 */
.footer {
    background-color: #343a40;
    color: white;
    padding: 40px 0;
    margin-top: 50px;
}

.footer h5 {
    color: #ecf0f1;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
    padding-left: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    background-color: #2c3e50;
    padding: 15px 0;
    color: #95a5a6;
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .search-form {
        max-width: 100%;
        margin-top: 10px;
    }
    
    .stats-card {
        margin-bottom: 15px;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .stats-card .stats-value {
        font-size: 1.5rem;
    }
}

/* 详情页样式 */
.content-detail {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-detail h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.content-detail .metadata {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.content-detail .content {
    line-height: 1.8;
}

/* 搜索页样式 */
.search-header {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.search-header .form-control {
    height: 50px;
    font-size: 1.1rem;
}

.search-filters {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.search-filters h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.search-results .card {
    margin-bottom: 15px;
}

/* 加载状态 */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 30px;
}

/* 企业详情页 */
.company-header {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.company-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.company-stats {
    display: flex;
    margin-bottom: 20px;
}

.company-stats .stat-item {
    text-align: center;
    padding: 0 20px;
    border-right: 1px solid #e9ecef;
}

.company-stats .stat-item:last-child {
    border-right: none;
}

.company-stats .stat-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.company-stats .stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

/* 首页特定样式 */
.hero-section {
    padding: 40px 0;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-top: 20px;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.hero-section .lead {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 25px;
}

.hot-tags {
    margin-top: 15px;
}

.hot-tags span {
    color: #6c757d;
    margin-right: 10px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.section-title i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* 话题卡片 */
.topic-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 20px;
    height: 100%;
    transition: all 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.topic-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.topic-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.topic-stats span {
    font-size: 0.9rem;
    color: #6c757d;
}

.topic-trend {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.topic-trend.positive {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27ae60;
}

.topic-trend.negative {
    background-color: rgba(231, 76, 60, 0.1);
    color: #c0392b;
}

/* 公司卡片 */
.company-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 20px;
    height: 100%;
    transition: all 0.3s ease;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.company-type {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 20px;
    background-color: #e9ecef;
    color: #495057;
}

.activity-section {
    margin: 15px 0;
}

.activity-section h5 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.activity-list {
    list-style: none;
    padding: 0;
}

.activity-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}

.activity-list li:last-child {
    border-bottom: none;
}

.activity-date {
    font-size: 0.8rem;
    color: #6c757d;
    margin-right: 10px;
}

/* 新闻源和日期样式 */
.source-date {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.source {
    background-color: #e9ecef;
    padding: 2px 8px;
    border-radius: 20px;
    color: #495057;
}

.date {
    color: #6c757d;
} 